package com.ruoyi.project.knowledge.mapper;

import com.ruoyi.project.knowledge.domain.KnowledgeAttach;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface KnowledgeAttachMapper {
    List<KnowledgeAttach> selectAttachByKnowledgeId(@Param("knowledgeId") String knowledgeId);

    int insertKnowledgeAttach(KnowledgeAttach attach);

    int updateKnowledgeAttach(KnowledgeAttach attach);

    int deleteKnowledgeAttach(@Param("id") Long id);

    int deleteKnowledgeAttaches(@Param("knowledgeId") String knowledgeId);
}
